
public class StartBedAssignmentEvent extends EventBase {

	public StartBedAssignmentEvent(PatientBase patient) {
		super(patient);
		duration = 5;
	}
	
	public void execute() {
		super.execute();
		patient.available = false;
		EventBase event =  new EndBedAssignmentEvent(patient);
		event.startTime = Simulator.getCurrentTime() + duration;
		Simulator.addEvent(event);
	}
}